"""
图像的减法：找到两张图像之间的差异
"""

import cv2

img_3 = cv2.imread('../data/3.png',0)
img_4 = cv2.imread('../data/4.png',0)

res = cv2.subtract(img_3,img_4)

cv2.imshow('img3',img_3)
cv2.imshow('img4',img_4)
cv2.imshow('res',res)

cv2.waitKey()
cv2.destroyAllWindows()